package com.ybb.production.mapper;

import com.alibaba.fastjson2.JSONObject;
import com.ybb.production.domain.GarmentProductionUserPay;
import com.ybb.production.dto.GarmentProductionPayCntParam;
import com.ybb.production.dto.GarmentProductionPayRecordDTO;
import com.ybb.production.dto.GarmentStyleCodeAndProcessParam;
import com.ybb.production.responce.GarmentPayByCntResp;
import com.ybb.production.responce.GarmentPayStyleCodeAndProcessResp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户工资发放Mapper接口
 *
 * @author dj
 * @date 2023-09-27
 */
public interface GarmentProductionUserPayMapper {
    /**
     * 查询用户工资发放
     *
     * @param id 用户工资发放主键
     * @return 用户工资发放
     */
    public GarmentProductionUserPay selectGarmentProductionUserPayById(Long id);

    /**
     * 查询用户工资发放列表
     *
     * @param garmentProductionUserPay 用户工资发放
     * @return 用户工资发放集合
     */
    public List<GarmentProductionUserPay> selectGarmentProductionUserPayList(GarmentProductionUserPay garmentProductionUserPay);

    /**
     * 新增用户工资发放
     *
     * @param garmentProductionUserPay 用户工资发放
     * @return 结果
     */
    public int insertGarmentProductionUserPay(GarmentProductionUserPay garmentProductionUserPay);

    /**
     * 修改用户工资发放
     *
     * @param garmentProductionUserPay 用户工资发放
     * @return 结果
     */
    public int updateGarmentProductionUserPay(GarmentProductionUserPay garmentProductionUserPay);

    /**
     * 删除用户工资发放
     *
     * @param id 用户工资发放主键
     * @return 结果
     */
    public int deleteGarmentProductionUserPayById(Long id);

    /**
     * 批量删除用户工资发放
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteGarmentProductionUserPayByIds(@Param("ids") Long[] ids);

    List<GarmentPayByCntResp> settlementListByQuantity(GarmentProductionPayCntParam userPayParam);

    List<GarmentProductionUserPay> selectListByUpIds(@Param("upIds") List<Long> upIds);

    List<GarmentProductionUserPay> selectList(GarmentProductionPayRecordDTO userPayParam);

    String paySalaryTotal(GarmentProductionPayRecordDTO userPayParam);

    List<GarmentProductionUserPay> paySalaryList(GarmentProductionPayRecordDTO userPayParam);

    double qryPayMoneyByUpIdAndSettleTime(JSONObject payParam);

    List<GarmentPayStyleCodeAndProcessResp> settlementListByStyleCodeOrProcess(GarmentStyleCodeAndProcessParam param);
}
